﻿
@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>
@{
    var db = ViewBag.DaDemo as List<LZHDemo.Models.Person>;
}
<h2>LZHDemo</h2>
<a href="/LZH/ADD">新增</a>
<table>
    <thead>
        <tr>
            <td>PersonID</td>
            <td>LastName</td>
            <td>FirstName</td>
        </tr>
    </thead>
    <tbody>
        @{
            foreach (var list in db)
            {
                <tr>
                    <td>@list.PersonID</td>
                    <td>@list.LastName</td>
                    <td>@list.FirstName</td>
                    <td></td>
                </tr>
            }
        }
    </tbody>
</table>
